Mysqladmin use format for tools:mysqladmin [option] command [command option] command ...Parameter options:-C Number Auto run count, must be used with-IHow long does the-I number interval repeat0) Check the status of the server every two seconds and
mysqladmin commands are management programs for MySQL servers that you can use to perform system administration operations such as checking profiles, checking service status, shutting down servers, creating databases, deleting databases, and so on. 1
SHOW CHARACTER SETShow all the available character setsCHARACTER SET CHARACTERSETlike'latin%';SHOW COLLATIONThe output includes all available character sets like ' latin1% ';SHOW COLUMNSDisplays the information for each column in a given table, and
' latin% ';' latin1% ';Show columns displays the information for each column in a given table , and for views, this statement also works. SHOW COLUMNS from MyDB. mytable; SHOW COLUMNS from MyTable to MyDB;The show create database display is used to
This section introduces various SQL statements. This section describes database-level SQL statements, operations such as viewing, creating, and deleting. Use SHOW to display the existing database Syntax: SHOWDATABASES [LIKEwild] If the LIKEwild part
Mysql database learning (1): Basic Concepts of databases, relational databases, Mysql database installation and configuration, and DDLDCLDML statements bitsCN.com
I. basic concepts of databases
Database (DB)
Warehouses that organize and store data
show databases;Show tables from db_name;
Show columns from table_name to db_name;Show index from Talbe_name [from db_name];Show status;Show variables;Show [Full] processlist;Show table status [from db_name];Show grants for user;
In addition to
Synchronous Asynchronous backup of two mysql databases: bitsCN.com
1. server statusServer A: 192.168.1.1Server B: 192.168.1.2
2. create a synchronization userHost domain A: 192.168.1.2 user name A: sync_a password A: aaaHost domain B: 192.168.1.1
Directory
I. Optimization Overview
Ii. query and index optimization Analysis
1. performance bottleneck locating
Show command
Slow query log
Explain analysis Query
Profiling Analysis Query
2 Index and Query Optimization
Iii. Configuration
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.